package com.lening.common.service;

import java.util.concurrent.TimeUnit;


/**
 * @author 牛强
 * @datetime 2024/4/23 9:53
 * @description 接口对象
 */
public interface RedisService {
    boolean save(String key,String value);

    boolean save(String key,String value,long timeout,TimeUnit unit);

    String get(String key);

    boolean hasKey(String key);

    boolean delKey(String key);

    boolean expire(String key, long timeout, TimeUnit unit);
}
